package com.ffcs.web.utils;

import java.io.IOException;

public class HttpUtilSnail {	
	
	//TODO 重构代码
	public static String base64EncodeNoSpace(String xml) {
		try {
			return new String(BASE64.encode(xml.getBytes())) ;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
	
	
	/**
     * Base64解密操作 TODO 修改所有引用到加密Utils
     * @param xml
     * @return
     * @throws IOException
     */
    public static String decrypt(String xml) {
		return new String(BASE64.decode(xml));
    }
}
